package com.okoj.excel_lib_rary.config;

public class Config {

    private String token;
    private String appid;
    private int _w_env=1; /* 环境类型 : 1 生产，2 测试 */
    private int _w_platform = 1; /* 1安卓 */
    private String userId="";

    /**
     * 文件下载本地的目录
     */
    private String downloadPath = "";

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public int get_w_env() {
        return _w_env;
    }

    public void set_w_env(int _w_env) {
        this._w_env = _w_env;
    }

    public int get_w_platform() {
        return _w_platform;
    }

    public void set_w_platform(int _w_platform) {
        this._w_platform = _w_platform;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getEnvString(){
         int env = get_w_env();
         return env == 1 ? "pord" : "test";
    }

    public String getDownloadPath() {
        return downloadPath;
    }

    public void setDownloadPath(String downloadPath) {
        this.downloadPath = downloadPath;
    }

    @Override
    public String toString() {
        return "Config{" +
                "token='" + token + '\'' +
                ", appid='" + appid + '\'' +
                ", _w_env=" + _w_env +
                ", _w_platform=" + _w_platform +
                ", userId='" + userId + '\'' +
                ", downloadPath='" + downloadPath + '\'' +
                '}';
    }
}
